/*
 * @Description:
 * @version:
 * @Author: 尹鹏孝
 * @Date: 2022-12-19 08:53:37
 * @LastEditors: 尹鹏孝
 * @LastEditTime: 2022-12-20 16:13:50
 */
import { createApp } from "vue";
import { createPinia } from "pinia";
import Antd from 'ant-design-vue';
import Btn from '@/components/btn.vue'
import App from "@/App.vue";
import router from "@/router";
import directives from '@/directive'
import "@/assets/main.css";
import i18nPlugin from '@/plugins/i18n'
import 'ant-design-vue/dist/antd.css';
const app = createApp(App);
app.component('a-btn', Btn)
console.log('sss',directives)
for (const [m,n] of Object.entries(directives)) {
    console.log(m)
    console.log(n)
    app.directive(m,n)
}

app.use(createPinia());
app.use(router);
app.use(i18nPlugin, {
  greetings: {
    hello: 'Bonjour!'
  }
})
app.use(Antd)
app.mount("#app");
